/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.insta.calendarMicroBlogage;

import processing.core.PApplet;
import processing.core.PImage;
import controlP5.*;
import g4p_controls.GLabel;
import java.awt.Color;

/**
 *
 * @author liban
 */
public class Blogage extends PApplet{
    
    private float x;
    private float y;
    private PImage image;
    private GLabel label;
    private String name;
    
    public Blogage(float abcisse, float ordonne, String image, String adresse) {
        this.setX(abcisse);
        this.setY(ordonne);
        this.setImage(image);
        this.setName(adresse);        
    }
    
    // Getters and Setters 
    
    public float get_X(){
        return x;
     }

    public void setX(float _x) {
        this.x = _x;
    }

    public float get_Y()  {
        return y;
    }
 
    public String getName(){
        return name;
    }

    public void setY(float _y) {
        this.y = _y;
    }

    public PImage getImage() {
        return image;
    }

    public void setImage(String _image) {
        this.image = loadImage(_image);
    }
  
    public void setName(String adresse){
        this.name = adresse;
    }
    /*
    
    Methodes d'un blogage
    */
    public void createLabels()  {
        label = new GLabel(this, 340, 10, 110, 150);
        label.setText("zedjsyfhg");
        label.setTextBold();
    }
    
}
